package cn.wolfcode.rbac.util;

import cn.wolfcode.rbac.domain.Employee;
import org.apache.shiro.SecurityUtils;

public abstract class UserContext {
    public static Employee getCurrentUser(){
        return (Employee)SecurityUtils.getSubject().getPrincipal();
    }
}
